﻿using System.Drawing;

namespace WindowsAPI
{
    public class MouseWeelEventArgs : MouseEventArgs
    {
        public static MouseWeelEventArgs FromMouseEventArgs(MouseEventArgs args) { return new MouseWeelEventArgs(args); }

        public enum WeelType : uint { Up = 0x780000, Down = 0xff880000 }

        public WeelType Weel { get; private set; }
        public Point Position { get { return Struct.Point; } }

        private MouseWeelEventArgs(MouseEventArgs args) : base(args) { Weel = (WeelType)args.Struct.MouseData; }

    }
}